package itdep.services.address;

import itdep.domain.address.City;
import itdep.domain.address.Street;
import itdep.services.NamedEntityQuery;

/**
 * @author Ivan Khalopik
 * @version $Revision: 42 $ $Date: 2010-06-25 09:12:54 +0000 (Fri, 25 Jun 2010) $
 */
public class StreetQuery
		extends NamedEntityQuery<Street, StreetQuery>
		implements StreetFilter {

	private City city;

	public StreetQuery() {
		super(Street.class);
	}

	@Override
	public City getCity() {
		return city;
	}

	public StreetQuery setCity(City city) {
		this.city = city;
		return query();
	}
}
